package com.example.quartz.common.Response;


public class ResultTool {
    public static Result<Object> success() {
        return new Result<Object>(true);
    }

    public static <T> Result<Object> success(T data) {
        return new Result<Object>(true, data);
    }

    public static Result<Object> fail() {
        return new Result<Object>(false);
    }

    public static Result<Object> fail(ResultCode resultEnum) {
        return new Result<Object>(false, resultEnum);
    }
}
